from django.http import HttpResponse, HttpRequest
from django.shortcuts import render
from django.views import View


class ClassView(View):

    # GET POST PUT DELETE
    # 查  增加  修改 删除
    def get(self, request):

        return HttpResponse('类视图!! 函数名字 必须这么写')

def index(request):
    # 1.接收请求对象
    # 2.返回响应对象
    return HttpResponse('first View')